package com.example.zhifubao;

import com.alipay.api.AlipayApiException;
import com.example.zhifubao.entity.*;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

public interface AliPay {


    /**
     * 交易创建
     * @return
     */
    String orderCreate(PayCreateVo payCreateVo) throws AlipayApiException;


    /***
     * 交易查询
     * @return
     */
    String orderQuery(PayQueryVo payQueryVo) throws AlipayApiException;

    /**
     * 交易关闭
     * @return
     */
    String orderClose(PayCloseVo payCloseVo) throws AlipayApiException;

    /**
     * 退款
     * @return
     */

    String orderRefund(PayRefundVo payRefundVo) throws AlipayApiException;

    /**
     * 退款查询
     * @return
     */
    String orderRefundQuery(PayRefundQueryVo payRefundQueryVo) throws AlipayApiException;

    String postCheck(HttpServletRequest request) throws UnsupportedEncodingException, AlipayApiException;

    PayResultOrderVo getCheck(HttpServletRequest request) throws UnsupportedEncodingException, AlipayApiException;


}
